package cn.webrx;

import java.util.Arrays;

public class Reg5 {
    public static void main(String[] args) {
        String langs = "java,php,mysql,javascript";
        String[] ss1 = langs.split(",");
        String[] ss2 = langs.split("");
        System.out.println(Arrays.toString(ss1));
        System.out.println(Arrays.toString(ss2));

        String ss = "java18php7mysql8javascript1000python555654645645c";
        //将ss字符串变成String[] {java,php,mysql,javascript,python}
        String[] ss3 = ss.split("\\d+");
        System.out.println(Arrays.toString(ss3));
    }

}
